<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2020/6/22
 * Time: 10:18
 */

namespace app\admin\controller\mall;

use app\common\controller\AdminController;
use think\App;

/**
 * Class Tags
 * @package app\admin\controller\mall
 * 课程标签
 */
class StoreTags extends AdminController
{
    public function __construct(App $app)
    {
        parent::__construct($app);
        $this->model = app('app\common\model\common\Tags');
    }

    public function get_where($array=[]){
        $arr[] = ['type','=',1];
        if(isset($array['name']) && !empty($array['name'])){
            $arr[] = ['name','like','%'.$array['name'].'%'];
        }
        return $arr;
    }
}